package com.xyh.transaction.mapper;

import com.xyh.transaction.entity.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.Collection;
import java.util.HashSet;
import java.util.List;

@Mapper
public interface MenuMapper {


    List<Menu> findAllByMenuId(Integer menuId);

    List<Menu> findChildrenByParentId(Integer parentId);

    Menu findByName(String name);

    List<Menu> findAll(Menu menu);

    Integer updateById(Menu menu);

    Integer insert(Menu menu);

    Integer deleteById(Integer[] ids);

    List<Menu> findRecursiveById(Integer menuId);

    List<Menu> findAllByMenuIds(Collection<Integer> menuIds);
}
